草庐IT

python - 安装pyspeckit时出现matplotlib错误

全部标签

ruby - 是否可以从本地缓存中 bundle/安装 gem?

我的电脑上有一堆我想在厨师食谱中使用的gem。我知道可以将它们放在像/tmp/gems这样的目录中,并且只是:cd/tmp/gemsgeminstall*.gem是否可以将所有gem放在一个目录中,这样我就可以使用bundler安装它们而无需再次下载它们?cd/somedir/my_rails_projectbundle我想节省带宽。 最佳答案 bundleinstall--local应该是你想要的。来自bundle-install手册页:--localDonotattempttoconnecttorubygems.org,inst

Ruby gem mysql2 安装错误

我在Windows7中安装了Ruby版本ruby​​1.9.2p0(2010-08-18)[i386-mingw32]。和gem版本1.3.7当我尝试安装mysqlgem时,它显示Failedtobuildgemnativeextension错误,这是为什么?我的mysql版本是5.1.36(WampServer)E:\RubyApps\test_app2>geminstallmysql2Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql2:ERROR:Failedtobuildgemnat

ruby-on-rails - Ruby on Rails - 捆绑安装期间出错

我一直在谷歌下面搜索这个错误,但我无法解决这个错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby2.1extconf.rbmkmf.rbcan'tfindheaderfilesforrubyat/usr/lib/ruby/include/ruby.hextconffailed,exitcode1Gemfileswillremaininstalledin/home/dyego/.bundler/tmp/9200/gems/sqlite3-1.3.9forinspection.Results

ruby-on-rails - 无法重新索引 Sunspot SOLR - 错误 - RSolr::Error::Http - 500 内部服务器错误

每次我尝试使用...重建索引rakesunspot:solr:reindex这些错误消息总是显示:Error-RSolr::Error::Http-500InternalServerError-retrying...Error-RSolr::Error::Http-500InternalServerError-ignoring...Error-RSolr::Error::Http-500InternalServerError-retrying...Error-RSolr::Error::Http-500InternalServerError-ignoring...我试着停止然后开始使用

ruby - 如何在 Mac Leopard 上安装 Ruby?

任何人都可以提供有关如何安装ruby​​1.9的说明吗?我尝试了整个网络上提供的安装说明。无法正常工作。请逐步指导。我尝试使用macports,但每次我输入ruby​​-v它都会给我1.8.6。 最佳答案 rvm是在OSX上管理ruby​​安装的最简单方法。如果您使用的是rvm,则可以通过键入rvminstall1.9.1来安装1.9.1、1.9.2、jruby、ree键入rvmdefault将您的ruby​​版本重置回1.8.6如何安装rvmsudogeminstallrvm-shttp://gemcutter.org/rvm-i

ruby-on-rails - 在 osx 上安装 pg gem 时出错

我在osx10.6.7上尝试在新的Rails3.0.7应用程序上运行bundleinstall,但在尝试构建pggem时它一直失败。它一直告诉我我需要开发者工具。但据我所知,我已经安装了开发人员工具。这是xcodebuild-version的输出Xcode3.2.6Componentversions:DevToolsCore-1809.0;DevToolsSupport-1806.0BuildVersion:10M2518这是失败的pggem构建的输出/Users/bm/.rvm/rubies/ruby-1.9.2-head/bin/rubyextconf.rb--with-pg-co

ruby - 安装 ruby​​ gem nokogiri 时缺少 libxslt

我知道这是一个重复的问题,但是我发现与此问题相关的所有其他答案似乎都没有帮助我...我正在安装GitLab并在它满足NokoGirigem要求时运行gem依赖项并失败并显示以下信息:ERROR:Errorinstallingnokogiri:ERROR:Failedtobuildgemnativeextension./usr/local/bin/rubyextconf.rbextconf.rb:10:in`':UseRbConfiginsteadofobsoleteanddeprecatedConfig.extconf.rb:10:in`':UseRbConfiginsteadofob

ruby - 点击服务器错误 `<module:Templates>':未初始化常量 Tilt::CompileSite (NameError)

我正在尝试将我的sqlite3数据库迁移到postgresql,但我无法通过此错误。当我运行tapsserversqlite://db/development.sqlite3[user][password]我不断收到/Users/phillipjarrar/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/sinatra-1.0/lib/sinatra/base.rb:298:in:uninitializedconstantTilt::CompileSite(NameError) 最佳答案

ruby - 包含模块时 __callee__ 的意外值——这是 Ruby 错误吗?

当通过alias_method创建的方法调用时,__callee__忽略旧方法的名称(此处为xxx)并返回新方法,如下:classFoodefxxx()__callee__endalias_method:foo,:xxxendFoo.new.foo#=>:foo即使xxx是从父类(superclass)继承的,这种行为仍然存在:classSupdefxxx()__callee__endendclassBar:bar鉴于以上两者,我希望当通过模块包含xxx时,同样的行为会发生。然而,事实并非如此:moduleModdefxxx()__callee__endendclassBazinclu

ruby-on-rails - 为什么 Ruby 只在我的系统上抛出一个段错误,而且只在这个 Rails 应用程序中?

我不太确定如何正确调试它,但尝试了几种不同的方法,虽然浪费了时间,但没有解决问题。我办公室里至少有4个其他人可以在安装了相同版本的ruby​​和ruby​​gems的相同机器上执行此代码而没有错误。这是我正在执行的代码:status=Open4::popen4("swfmillsimplestdinstdout")do|pid,stdin,stdout,stderr|stdin.write(config)stdin.closebytes=stdout.readerrors=stderr.readend我在这条线路上收到“总线错误”:errors=stderr.read如果我评论该行,我